ANSI esc[#;#H [move cursor to #;# - esc[H home cursor] esc[#A [move cursor up # lines but not past top line] esc[#B [move cursor down # lines but not past bottom line] esc[#C [move cursor right # columns but not past right screen] esc[#D [move cursor left # columns but not past left screen] esc[s [save cursor position (see below)] esc[u [restore cursor position (see above)] esc[K [erase to end of current line] esc[J [erase screen - home cursor] esc[#0;#1;#3;#4p [define key #0;#1 as sequence #3;#4] esc[#0;#1;"string";#4p esc[#;#;#m [reset screen colors/attributes] fg color bg fg color bg attrib result alone 34 BLUE 44 30 BLACK 40 0 normal [gray/black] 35 MAGENTA 45 31 RED 41 1 bright [white/black] 36 CYAN 46 32 GREEN 42 5 blink 37 GRY/WHT 47 33 BRN/YLW 43 7 reverse [black/gray only]$&&